package com.javaweb.userApp.controller;

import com.javaweb.common.utils.JsonResult;
import com.javaweb.system.common.BaseController;
import com.javaweb.system.dto.LoginDto;
import com.javaweb.system.service.ILoginService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import javax.servlet.http.HttpServletRequest;

/**
 * TODO
 *
 * @author 侯广
 * @version 1.0
 * @date 2021/7/16 15:55
 */
@RestController
@RequestMapping("/userAppNoAuth/login")
public class UserAppNoAuthLoginController extends BaseController {

    @Autowired
    private ILoginService loginService;

    @PostMapping("/accountLogin")
    public JsonResult login(@RequestBody LoginDto loginDto, HttpServletRequest request) {

        return loginService.login(loginDto, request);
    }
}
